from shapes import *
from rocketship import *

world = TurtleWorld()
bob = Turtle()









def showMenu():
	print "1: Turtle Color"
	print "2: Turtle Size"
	print "3: Rocketship"
	print "4: Star"
	print "5: Polygon"
	print "6: Line"
	print "7: Move"
	print "8: Stickman"
	print "9: Exit"
	print 
	answer = raw_input("Choose a number from this list: ")
	return answer
	
def drawShape(t, option):
	if option == "1":
		color = raw_input("What color do you want the turtle to be? Colors available: orange, blue, purple, black, white, gold, grey, and yellow: ")
		
		if (color == "green" 
				or color == "orange"
				or color == "blue"
				or color == "purple"
				or color == "black"
				or color == "white"
				or color == "gold"
				or color == "grey"
				or color == "yellow"):
			t.color = color 
		else:
			print "Why must you choose a color I don't know!?!?! I'm going to use red."
			t.color = "red"
		t.fd()
		t.bk()
	elif option == "2":
		size = input("How big the Turtle? ")
		t.r = size
		t.fd()
		t.bk()
	elif option == "3":
		size = raw_input("Size of Rocketship: ")
		size = float(size)
		rocketship(t, size)
	elif option == "4":
		points = input("How many points? ")
		size = input("How big? ")
		rotate = input("How much rotation? ")
		star(t, points, size, rotate)
	elif option == "5":
		sides = input("How many sides? ")
		size = input("How big? ")
		rotate = input("How much rotation? ")
		poly(t, sides, size, rotate)
	elif option == "6":
		x = input("How far? (Left or right) ")
		y = input("How high? (Up or down) ")
		line(t, x, y)
	elif option == "7":
		x = input("How far? (Left or right) ")
		y = input("How high? (Up or down) ")
		move(t, x, y)
	elif option == "8":
		size = input("How big? ")
		rotate = input("How much rotation? ")
		stickMan(t, size, rotate)
	else:
		print "You're not smart, theres only seven numbers..."

def run():
	while True:
		opt = showMenu()
		if opt == "9":
			print "BYE!"
			exit()
		drawShape(bob, opt)
run()
	
	
	
	
	
	